<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        class Person {
            constructor(name, age) {
                this.name = name
                this.age = age
            }
            school = '尚硅谷'
            run = function () {
                console.log('跑');
            }
            eat(){
                console.log('吃');
            }
            static kind='人'
        }
        class Student extends Person{
            constructor(name,age,score){
                super(name,age)
                this.score=score
            }

        }
        const ming=new Student('明',19,100)
        ming.run()
        ming.eat()
        console.log(Person.kind); 
        console.log(ming);
    </script>
</body>

</html>